package com.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;


@EqualsAndHashCode(callSuper = false)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ImportEntity {

    @Excel(name = "序号")
    private String serialNum;

    @Excel(name = "姓名")
    private String name;

    @Excel(name = "性别", replace = {"男_true", "女_false"})
    private Boolean sex;

    @Excel(name = "电话")
    private String phone;

    @Excel(name = "购买时间", format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08")
    private Date buyTime;

    @Excel(name = "住址")
    private String address;

    @Excel(name = "水果", groupName = "订单类别")
    private String fruitsName;

    @Excel(name = "蔬菜")
    private String vegetableName;

}
